package pe.edu.upc.dsd.ws;

import org.springframework.jms.core.JmsTemplate;

public class QueueSender {

	private JmsTemplate jmsTemplate;	
	
	private String queueName;
	
	private org.apache.activemq.ActiveMQConnectionFactory  connectionFactory;
	
	public void send( String  message){
		
		jmsTemplate.convertAndSend(queueName,message) ;
	}


	public org.apache.activemq.ActiveMQConnectionFactory getConnectionFactory() {
		return connectionFactory;
	}


	public void setConnectionFactory(
			org.apache.activemq.ActiveMQConnectionFactory connectionFactory) {
		this.connectionFactory = connectionFactory;
	}


	public void setJmsTemplate(JmsTemplate jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}


	public void setQueueName(String queueName) {
		this.queueName = queueName;
	}
	
	
	
	
	
}
